package com.example.emos.wx.service;

import cn.hutool.json.JSONObject;
import com.example.emos.wx.db.pojo.TbUser;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Set;

/**
 * @ClassName UserService
 * @Description TODO
 * @Author daoketa
 * @Version 1.0
 **/
public interface UserService {

    Integer registerUser(String activationCode, String tempCode, String nickname, String photo);

    Integer login(String tempCode);

    Set<String> searchUserPermissions(Integer userId);

    TbUser selectById(Integer userId);

    String searchUserHiredate(Integer userId);

    HashMap searchUserSummary(Integer userId);

    ArrayList<HashMap> searchUserGroupByDept(String keyword);

    ArrayList<HashMap> searchMembers(List param);

    List<HashMap> searchUserNameAndPhoto(List list);

    String searchUserEmail(Integer userId);

    JSONObject searchUserContactList();

    void insertUser(HashMap param);

    Integer searchUserIdByEmail(String email);

    HashMap searchUserInfo(Integer userId);

    Integer updateUserInfo(HashMap param);

    void deleteUserById(Integer id);

}
